<?php
session_start();
define('ROOTPATH',dirname(__FILE__).'/');
$server_name=$_SERVER['SERVER_NAME'];
define('ROOTURL',"http://$server_name/ftdproduct/");
define('LIB',ROOTPATH.'lib/');
define('PLUGIN',ROOTPATH.'plugin/');
define('VIEW',ROOTPATH.'view/');
define('JS',ROOTURL.'view/js/');
define('IMAGE',ROOTURL.'view/image/');
define('CSS',ROOTURL.'view/css/');
define('CONSTANT',ROOTPATH.'constant/');
define('USERDIR',ROOTPATH.'user/');
define('PICDIR',ROOTPATH.'pic/');
define('PICURL',ROOTURL.'pic/');
require_once(LIB."mysql.class.php");
require_once(LIB."uid.class.php");
require_once(PLUGIN.'smarty3/Smarty.class.php');
$tpl=new Smarty();
$tpl->template_dir = VIEW.'tpl/';
$tpl->compile_dir  = PLUGIN.'smarty3/templates_c/';
$tpl->config_dir   = PLUGIN.'smarty3/configs/';
$tpl->cache_dir    = PLUGIN.'smarty3/cache/';

$tpl->force_compile = true;
$tpl->debugging = false;
$tpl->caching = false;
$tpl->cache_lifetime = 120;

require_once(CONSTANT."page.php");


?>